CC=gcc
CFLAGS=-std=c11 -Wall -O3 -g -pthread

LDLIBS=-lm -lrt -pthread

all: msf.out

msf.out: msf.o xerrori.o
	$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)

msf.o: msf.c xerrori.h
	$(CC) $(CFLAGS) -c $< -o $@

xerrori.o: xerrori.c xerrori.h
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f *.o msf.out

.PHONY: all clean
